import http from "../http";

function id(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/id',
        method: 'post',
        data: params,
        header: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}
function list(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/queryList',
        method: 'post',
        data: params,
    })
}

function create(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/create',
        method: 'post',
        data: params,
    })
}

function update(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/update',
        method: 'post',
        data: params,
    })
}

function like(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/like',
        method: 'post',
        data: params,
        header: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}
function publish(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/publish',
        method: 'post',
        data: params,
        header: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}
function cancel(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/cancel',
        method: 'post',
        data: params,
        header: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}
function remove(params: any = {}) {
    return http.myRequest({
        url: '/chat/article/remove',
        method: 'post',
        data: params,
        header: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}
export default {
    list,
    create,
    update,
    like,
    id,
    publish,
    cancel,
    remove
}


